{include file="public/header" /}

<form method="get" action="{:url('index', array('user_type' => $user_type))}" novalidate="true">
	<section class="panel panel-default search-from">
		<header class="panel-header">
			<div class="title"><i class="icon-arrow-down-solid"></i>查询条件</div>
			<div class="opt-box" style="float: right">
				<a href="{:url('add')}" class="jump"><i class="icon-plus"></i>添加</a>
			</div>
		</header>
		<div class="panel-body">
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="user_id" value="{$user_id}" placeholder="用户ID">
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="nickname" value="{$nickname}" placeholder="昵称">
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="realname" value="{$realname}" placeholder="姓名">
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="mobile" value="{$mobile}" placeholder="手机号">
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<select name="status">
						<option value="">状态</option>
						<option value="1" {eq name="status" value="1"}selected{/eq}>启用</option>
						<option value="0" {eq name="status" value="0"}selected{/eq}>禁用</option>
					</select>
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					{php}$type_desc_list = get_type_desc_list('app_type_desc');{/php}
					<select name="app_type">
						<option value="">注册来源</option>
						{volist name="type_desc_list" id="rs"}
							<option value="{$rs['val']}" {$rs['val'] == $app_type ? 'selected' : ''}>{$rs['name']}</option>
						{/volist}
					</select>
				</div>
			</div>
			<div class="form-group-submit">
				<button type="submit" class="btn btn-info"><i class="icon-search"></i>查询</button>
			</div>
		</div>
	</section>
</form>

<table class="data-list">
	<tbody>
		<tr>
			<th width="70">用户ID</th>
			<th>头像</th>
			<th>城市</th>
			<th>呢称</th>
			<th>姓名</th>
			<th>性别</th>
			<th>手机号</th>
			<th>E-mail</th>
			<th>来源</th>
			<th>状态</th>
			<th>注册时间</th>
			<th>操作</th>
		</tr>
		{volist name="list" id="rs"}
			<tr class="data-{$rs['user_id']}">
				<td>{$rs['user_id']}</td>
				<td><a href="{$rs['is_sso_head'] ? $rs['head_url'] : img($rs['head_url'], 400, 400)}" class="view_big_pic"><img src="{$rs['is_sso_head'] ? $rs['head_url'] : img($rs['head_url'], 200, 200)}" width="40" height="40"></a></td>
				<td>{$rs['city_name']}</td>
				<td>{$rs['nickname']}</td>
				<td>{$rs['realname']}</td>
				<td>{$rs['sex_desc']}</td>
				<td>{$rs['mobile']}</td>
				<td>{$rs['email']}</td>
				<td>{$rs['app_type_desc']}</td>
				<td class="{:model('AdminRole')->is_acl('set_status?user_type=user')}">
					<input class="ajax_checkbox" url="{:url('set_status', array('user_type' => 'user', 'user_id' => $rs['user_id']))}" type="checkbox" value="1" {$rs['status'] ? 'checked' : ''}>
				</td>
				<td>{:date('Y-m-d H:i:s', $rs['create_time'])}</td>
				<td>
					<a class="btn btn-default win" title="修改密码" href="{:url('win_set_password', array('user_type' => $user_type, 'user_id' => $rs['user_id']))}">
						<i class="icon-password"></i>
					</a>
				</td>
			</tr>
		{/volist}
	</tbody>
</table>

<div class="opt-page-box">
	<ul class="button-group">
		<li class="btn bg-default jump" url="{:url('add')}"><i class="icon-plus"></i>添加</li>
	</ul>
	{$page}
</div>

{include file="public/footer" /}